﻿var et = require('elementtree'),
fs = require('fs'),
XML = et.XML,
ElementTree = et.ElementTree,
element = et.Element,
subElement = et.SubElement;

var data = fs.readFileSync('document.xml').toString();
var etree = et.parse(data);

console.log(etree.findtext('./books/book/name'));


